

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_PIANO_MODULE_BLOCK_1607506929669'] = function(block)
        {
            let c_pin = this.getFieldValue('c_pin');
let d_pin = this.getFieldValue('d_pin');
let piano_btn = this.getFieldValue('piano_btn');
          
            Blockly.Arduino.definitions_['include_EXT_PIANO_MODULE_BLOCK_1607506929669'] = `\n#include "BS818A.h"`;
            Blockly.Arduino.definitions_['define_EXT_PIANO_MODULE_BLOCK_1607506929669'] = `BS818A BS;`;
            Blockly.Arduino.definitions_['setup_EXT_PIANO_MODULE_BLOCK_1607506929669'] = `BS.InitBS818A(${d_pin}, ${c_pin});`;
             return  [`BS.PressBsButton(${piano_btn})`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        